$menuBg:#304156;
$subMenuBg:#1f2d3d;
$menuHover:#001528;

.sideBar{
    transition: width 0.28s;
    width: 180px !important;
    height: calc(100vh - 40px);;
    position: fixed;
    font-size: 0px;
    top: 40px;
    bottom: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
    //reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }
    .scrollbar-wrapper {
      overflow-x: hidden!important;
      .el-scrollbar__view {
        height: 100%;
      }
    }
    .el-scrollbar__bar.is-vertical{
      right: 0px;
    }
    .is-horizontal {
      display: none;
    }
    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }
    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .is-active > .el-submenu__title{
        color: #f4f4f5!important;
    }
}
.hideSidebar {
    .sideBar {
        width: 64px !important;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .submenu-title-noDropdown {
        padding-left: 10px !important;
        position: relative;
        .el-tooltip {
          padding: 0 10px !important;
        }
    }
    .el-submenu {
        overflow: hidden;
        &>.el-submenu__title {
            text-align: center;
            &>i {
                font-size: 18px;
            }
            .el-submenu__icon-arrow {
                display: none;
            }
        }
    }
    .el-menu--collapse {
        .el-submenu {
            &>.el-submenu__title {
                .is_active{
                    color: rgb(64, 158, 255);
                }
                &>span {
                    height: 0;
                    width: 0;
                    overflow: hidden;
                    visibility: hidden;
                    display: inline-block;
                }
            }
        }
    }
}
.el-submenu__title{
    &>i {
        font-size: 16px;
        width: 24px;
        // margin-right: 5px;
        text-align: center;
    }
}

.sidebar-container .nest-menu .el-submenu>.el-submenu__title,
.sidebar-container .el-submenu .el-menu-item {
    min-width: 180px !important;
    background-color: $subMenuBg !important;
    &:hover {
        background-color: $menuHover !important;
    }
}
.el-menu--collapse .el-menu .el-submenu {
    min-width: 180px !important;
}

/* 移动端 */
.mobile {
    .sideBar {
        width: 180px !important;
        transition: transform .28s;
    }
    &.hideSidebar {
        .sideBar {
            transition-duration: 0.3s;
            transform: translate3d(-180px, 0, 0);
        }
    }
}

.el-menu--vertical{
    & >.el-menu{
      .svg-icon{
        margin-right: 16px;
      }
    }
}